package com.service.impl;



import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dao.IUserDao;
import com.entity.User;
import com.service.IUserService;
import com.tools.ExceptionShow;

public class UserService implements IUserService{

	private static final Logger log = LoggerFactory.getLogger(UserService.class);
	
	private IUserDao userDao;
	
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}



	@Override
	public void save(User user) {
		try {
			userDao.save(user);
		} catch (Exception e) {
			log.info(ExceptionShow.getException(e));
			e.printStackTrace();
		}
	}

}
